gtk4.git
24 years agoRemove assorted G_OBJECT casts where unnecessary.
Sebastian Wilhelmi [Thu, 13 Dec 2001 21:22:12 +0000 (21:22 +0000)]
Remove assorted G_OBJECT casts where unnecessary.

2001-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gdk-pixbuf-animation.c, gdk-pixbuf-loader.c, gdk-pixpuf.c,
io-gif-animation.c, io-gif.c, io-tiff.c, test-loaders.c: Remove
assorted G_OBJECT casts where unnecessary.

* gdk-pixbuf-loader.c: Call g_object_ref and g_object_unref
instead of gdk_pixbuf_animation_ref and gdk_pixbuf_animation_unref
resp.

* gdk-pixbuf-csource.c, io-bmp.c, io-gif-animation.c, io-ico.c,
io-jpeg.c, io-png.c, io-pnm.c, io-ras.c, io-tga.c, io-wbmp.c,
io-xbm.c, io-xpm.c, test-gdk-pixbuf.c: Dito for gdk_pixbuf_ref and
gdk_pixbuf_unref.

* Makefile.am, pixops/Makefile.am: Compile everything with
-DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED

* gdk-pixdata.c: Use g_ascii_strup() instead of g_strup().

* io-xpm.c: Use g_ascii_strcasecmp() instead of g_strcasecmp().

* demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
resp.

24 years agofree path at the end
Kristian Rietveld [Thu, 13 Dec 2001 21:01:46 +0000 (21:01 +0000)]
free path at the end

Thu Dec 13 22:02:41 2001  Kristian Rietveld   <kris@gtk.org>

        * gtk/gtktreeview.c (validate_visible_area): free path
        at the end

24 years agoUpdated Norwegian (bokmål) translation.
Kjartan Maraas [Thu, 13 Dec 2001 19:59:18 +0000 (19:59 +0000)]
Updated Norwegian (bokmål) translation.

2001-12-13  Kjartan Maraas  <kmaraas@gnome.org>

* no.po: Updated Norwegian (bokmål) translation.

24 years agoMarkup fixes.
Matthias Clasen [Thu, 13 Dec 2001 19:51:24 +0000 (19:51 +0000)]
Markup fixes.

        * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.

        * gdk-pixbuf-io.c: Markup fixes.

        * gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
        gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
        gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
        gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
        gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
        gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
        gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
        gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
        gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
        gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
        gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
        gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
        gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
        gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
        gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
        gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
        gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).

24 years agodo not try to find the clicked node in the tree when tree == NULL
Kristian Rietveld [Thu, 13 Dec 2001 19:36:40 +0000 (19:36 +0000)]
do not try to find the clicked node in the tree when tree == NULL

Thu Dec 13 20:37:27 2001  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
        to find the clicked node in the tree when tree == NULL

24 years agoCompare event->state with the default mod mask.
Anders Carlsson [Thu, 13 Dec 2001 17:25:22 +0000 (17:25 +0000)]
Compare event->state with the default mod mask.

2001-12-13  Anders Carlsson  <andersca@gnu.org>

* gtk/gtktreeview.c (gtk_tree_view_button_press): Compare
event->state with the default mod mask.

24 years agoUpdated Slovak translation.
Stanislav Visnovsky [Thu, 13 Dec 2001 13:33:22 +0000 (13:33 +0000)]
Updated Slovak translation.

2001-12-13  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>

        * sk.po: Updated Slovak translation.

24 years agos/obj/klass/ where appropriate
jacob berkman [Wed, 12 Dec 2001 23:04:12 +0000 (23:04 +0000)]
s/obj/klass/ where appropriate

2001-12-12  jacob berkman  <jacob@ximian.com>

* gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate

24 years agoReset the existing slave before removing it to give it a chance to commit
Owen Taylor [Wed, 12 Dec 2001 22:35:31 +0000 (22:35 +0000)]
Reset the existing slave before removing it to give it a chance to commit

Wed Dec 12 17:22:45 2001  Owen Taylor  <otaylor@redhat.com>
* gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
Reset the existing slave before removing it to give
it a chance to commit and emit "preedit_changed"
in case there was still a preedit string.

24 years agoTypo fixes Typo fix. (#66746)
Matthias Clasen [Wed, 12 Dec 2001 22:29:53 +0000 (22:29 +0000)]
Typo fixes Typo fix. (#66746)

        * gtk/gtktextlayout.c: Typo fixes
        * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)

        * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel,
        gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)

        * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)

        * gtk/tmpl/gtklist.sgml: Markup fixes.

        * gdk/tmpl/selections.sgml, gtk/tmpl/gtksocket.sgml: s/succesful/successful/g.

        * gtk/gtk-sections.txt, gtk/tmpl/gtkstyle.sgml: Remove
        GTK_STYLE_NUM_STYLECOLORS. (#66467)

24 years agodefine G_LOG_DOMAIN for GdkPixbuf.
Matthias Clasen [Wed, 12 Dec 2001 22:20:36 +0000 (22:20 +0000)]
define G_LOG_DOMAIN for GdkPixbuf.

24 years agoRemove validate_rows_timer in unrealize. Reported by Matthew Wilson.
Jonathan Blandford [Wed, 12 Dec 2001 22:15:27 +0000 (22:15 +0000)]
Remove validate_rows_timer in unrealize. Reported by Matthew Wilson.

Wed Dec 12 16:43:10 2001  Jonathan Blandford  <jrb@redhat.com>

* gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
validate_rows_timer in unrealize.  Reported by Matthew Wilson.

24 years agoMarkup fixes.
Matthias Clasen [Wed, 12 Dec 2001 22:11:37 +0000 (22:11 +0000)]
Markup fixes.

        * gdk-pixbuf-loader.c, gdk-pixbuf-util.c: Markup fixes.

24 years agoRemove support for "prepainting" the menu before realizing other than via
Owen Taylor [Wed, 12 Dec 2001 21:30:08 +0000 (21:30 +0000)]
Remove support for "prepainting" the menu before realizing other than via

Wed Dec 12 16:18:26 2001  Owen Taylor  <otaylor@redhat.com>
        * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
        "prepainting" the menu before realizing other than
        via gtk_style_set_background() - this was broken when
        we added menu scroll support.
        * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
        window in the expose event -- fixes problem with border
        flashing during scrolling.

24 years agoSupport using names/nicks for the gdk_settings values for enum valued
Owen Taylor [Wed, 12 Dec 2001 20:26:50 +0000 (20:26 +0000)]
Support using names/nicks for the gdk_settings values for enum valued

Wed Dec 12 15:11:49 2001  Owen Taylor  <otaylor@redhat.com>
        * gtk/gtksettings.c (gtk_settings_get_property): Support
        using names/nicks for the gdk_settings values for enum valued
        types. (#57678, reported by Anders Carlsson)

24 years agokeep in sync with insert_page_menu. Code duplication is bad.
Jonathan Blandford [Wed, 12 Dec 2001 20:10:52 +0000 (20:10 +0000)]
keep in sync with insert_page_menu. Code duplication is bad.

Wed Dec 12 15:01:33 2001  Jonathan Blandford  <jrb@redhat.com>

* gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
with insert_page_menu.  Code duplication is bad.

* gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
wrong fix yesterday.

24 years agoFix check for modifiers.
Owen Taylor [Wed, 12 Dec 2001 19:30:01 +0000 (19:30 +0000)]
Fix check for modifiers.

Wed Dec 12 14:27:30 2001  Owen Taylor  <otaylor@redhat.com>
        * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
        modifiers.

24 years agocheck GTK_MENU_ITEM (menu_item)->accel_path first when looking up the
James Henstridge [Wed, 12 Dec 2001 12:21:52 +0000 (12:21 +0000)]
check GTK_MENU_ITEM (menu_item)->accel_path first when looking up the

2001-12-12  James Henstridge  <james@daa.com.au>

* gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
(menu_item)->accel_path first when looking up the accel path.

24 years agoadd another example
Havoc Pennington [Wed, 12 Dec 2001 06:40:08 +0000 (06:40 +0000)]
add another example

2001-12-12  Havoc Pennington  <hp@pobox.com>

* gtk/text_widget.sgml: add another example

24 years agoOnly draw for events on the bin window.
Owen Taylor [Wed, 12 Dec 2001 00:23:45 +0000 (00:23 +0000)]
Only draw for events on the bin window.

Tue Dec 11 19:18:21 2001  Owen Taylor  <otaylor@redhat.com>

        * tests/testgtk.c (layout_expose_handler): Only draw
        for events on the bin window.

24 years agoSmall fix to let mnemonics work with notebooks.
Jonathan Blandford [Tue, 11 Dec 2001 23:56:46 +0000 (23:56 +0000)]
Small fix to let mnemonics work with notebooks.

Tue Dec 11 18:55:16 2001  Jonathan Blandford  <jrb@redhat.com>

* gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
mnemonics work with notebooks.

24 years agoChange bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
Jonathan Blandford [Tue, 11 Dec 2001 20:28:21 +0000 (20:28 +0000)]
Change bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).

Tue Dec 11 15:25:06 2001  Jonathan Blandford  <jrb@redhat.com>

* gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
Makes some flicker while scrolling go away.

24 years agoadded new keyboard shortcut 'a' which adds alpha to the pixbuf; re-load
Michael Natterer [Tue, 11 Dec 2001 17:31:52 +0000 (17:31 +0000)]
added new keyboard shortcut 'a' which adds alpha to the pixbuf; re-load

2001-12-11  Michael Natterer  <mitch@gimp.org>

* demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
adds alpha to the pixbuf; re-load the saved pixbuf and
pixel-by-pixel compare it with the original one.

24 years agogdk_pixbuf__png_image_save: removed wrong endian conversion stuff; don't
Michael Natterer [Tue, 11 Dec 2001 17:30:53 +0000 (17:30 +0000)]
gdk_pixbuf__png_image_save: removed wrong endian conversion stuff; don't

2001-12-11  Michael Natterer  <mitch@gimp.org>

* io-png.c: gdk_pixbuf__png_image_save: removed wrong endian
conversion stuff; don't copy RGB pixbufs' lines around before
saving them.

24 years ago*** empty log message ***
Wang Jian [Tue, 11 Dec 2001 15:36:36 +0000 (15:36 +0000)]
*** empty log message ***

24 years agoFix wrong ChangeLog entry Fix drawing of top right corner
Soeren Sandmann [Tue, 11 Dec 2001 14:39:16 +0000 (14:39 +0000)]
Fix wrong ChangeLog entry Fix drawing of top right corner

Tue Dec 11 15:39:08 2001  Soeren Sandmann  <sandmann@daimi.au.dk>

* ChangeLog: Fix wrong ChangeLog entry
* gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
right corner

24 years ago*** empty log message ***
Søren Sandmann Pedersen [Tue, 11 Dec 2001 14:28:18 +0000 (14:28 +0000)]
*** empty log message ***

24 years agoremove <<<<<<<
Jonathan Blandford [Tue, 11 Dec 2001 01:40:54 +0000 (01:40 +0000)]
remove <<<<<<<

24 years agodo not grab things if the nograb debug flag is set
jacob berkman [Tue, 11 Dec 2001 01:33:02 +0000 (01:33 +0000)]
do not grab things if the nograb debug flag is set

2001-12-10  jacob berkman  <jacob@ximian.com>

* gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer):
* gdk/x11/gdkmain-x11.c (gdk_pointer_grab):
(gdk_keyboard_grab): do not grab things if the nograb debug flag
is set

* gdk/gdkinternals.h:
* gdk/gdk.c: add nograbs debug flag to disable grabs of the
keyboard / mouse

24 years ago*** empty log message ***
Jacob Berkman [Tue, 11 Dec 2001 01:08:33 +0000 (01:08 +0000)]
*** empty log message ***

24 years agostupid bug where I didn't reset the timer.
Jonathan Blandford [Tue, 11 Dec 2001 00:45:25 +0000 (00:45 +0000)]
stupid bug where I didn't reset the timer.

Mon Dec 10 19:42:29 2001  Jonathan Blandford  <jrb@redhat.com>

* gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
didn't reset the timer.

24 years agoClose comment.
Matthias Clasen [Mon, 10 Dec 2001 21:50:36 +0000 (21:50 +0000)]
Close comment.

        * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.

        * gtk/gtkviewport.c: Add docs.

24 years agoNew function to fixup parity. RBTree corruption bug--
Jonathan Blandford [Mon, 10 Dec 2001 21:24:15 +0000 (21:24 +0000)]
New function to fixup parity. RBTree corruption bug--

Mon Dec 10 16:21:38 2001  Jonathan Blandford  <jrb@redhat.com>

* gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
RBTree corruption bug--

24 years agoReturn if edited_column is NULL, also grab focus before removing the
Anders Carlsson [Mon, 10 Dec 2001 03:43:10 +0000 (03:43 +0000)]
Return if edited_column is NULL, also grab focus before removing the

2001-12-10  Anders Carlsson  <andersca@gnu.org>

* gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
if edited_column is NULL, also grab focus before removing
the cell_editable.

24 years agocheck for 0 value on the denominator in the horizontal case just like we
George Lebl [Sun, 9 Dec 2001 22:32:50 +0000 (22:32 +0000)]
check for 0 value on the denominator in the horizontal case just like we

Sun Dec 09 15:06:51 2001  George Lebl <jirka@5z.com>

* gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
  denominator in the horizontal case just like we do in the vertical
  case (why I didn't notice that there were two cases the first time
  around is beyond me:).  Also fix indentation in the vertical case.

24 years agoUpdate xsettings name.
Anders Carlsson [Sun, 9 Dec 2001 22:08:30 +0000 (22:08 +0000)]
Update xsettings name.

2001-12-09  Anders Carlsson  <andersca@gnu.org>

* gdk/x11/gdkevents-x11.c: Update xsettings name.

* gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
gtk-dnd-drag-threshold GtkSetting.

* gtk/gtksettings.c (gtk_settings_class_init): Add
setting for dnd drag threshold.

24 years agoAdd docs.
Matthias Clasen [Sun, 9 Dec 2001 21:34:39 +0000 (21:34 +0000)]
Add docs.

        * gtk/gtkcontainer.c: Add docs.

        * gtk/tmpl/gtkmain.sgml: Markup fixes.

        * gtk/gtk-docs.sgml: Add an empty entity to suppress
        crossreferencing in programlistings.

24 years agoAdd docs.
Matthias Clasen [Sun, 9 Dec 2001 21:32:24 +0000 (21:32 +0000)]
Add docs.

        * gtk/gtkcontainer.c: Add docs.

        * gtk/tmpl/gtkmain.sgml: Markup fixes.

        * gtk/gtk-docs.sgml: Add an empty entity to suppress
        crossreferencing in programlistings.

24 years agoDoc markup fix.
Matthias Clasen [Sat, 8 Dec 2001 21:39:34 +0000 (21:39 +0000)]
Doc markup fix.

        * gtk/gtkwidget.c: Doc markup fix.

        * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)

        * gtk/gtktreestore.c: Typo fixes. (#66445)

        * gtk/gtkaccelgroup.c: Misc doc markup. (#66425)

        * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
        to gtk_clipboard_set_with_owner(). (#66424)

        * gtk/tmpl/gtkclipboard.sgml: Fix references to
        get_clipboard_set_with_owner(). (#66424)

24 years agoFallback to setting the prgname to "<unknown>" if someone doesn't pass in
Christopher Blizzard [Sat, 8 Dec 2001 21:13:02 +0000 (21:13 +0000)]
Fallback to setting the prgname to "<unknown>" if someone doesn't pass in

Sat Dec  8 16:12:10 2001  Christopher Blizzard  <blizzard@redhat.com>

        * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
        "<unknown>" if someone doesn't pass in a valid argc.  (Patch from
        Fabrice Bellet <fabrice@gnu.org>, #54127).

24 years agoAdd debug spew to lots of places, so that people with crashy trees can
Jonathan Blandford [Sat, 8 Dec 2001 20:14:15 +0000 (20:14 +0000)]
Add debug spew to lots of places, so that people with crashy trees can

Sat Dec  8 10:04:54 2001  Jonathan Blandford  <jrb@redhat.com>

* gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
of places, so that people with crashy trees can just run their
program with GTK_DEBUG=TREE.

24 years agonuke the stamp++, per jrb's request
Kristian Rietveld [Sat, 8 Dec 2001 19:58:05 +0000 (19:58 +0000)]
nuke the stamp++, per jrb's request

Sat Dec  8 20:57:24 2001  Kristian Rietveld  <kristian@planet.nl>

        * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
        per jrb's request

24 years agoUpdated Swedish translation.
Christian Rose [Sat, 8 Dec 2001 17:40:54 +0000 (17:40 +0000)]
Updated Swedish translation.

2001-12-08  Christian Rose  <menthos@menthos.com>

* sv.po: Updated Swedish translation.

24 years agoDon't return TRUE since then the default GtkLayout expose handler won't be
Anders Carlsson [Sat, 8 Dec 2001 15:44:45 +0000 (15:44 +0000)]
Don't return TRUE since then the default GtkLayout expose handler won't be

2001-12-08  Anders Carlsson  <andersca@gnu.org>

* tests/testgtk.c (layout_expose_handler): Don't return TRUE
since then the default GtkLayout expose handler won't be called.

24 years agoremove g_return_if_fail.
Jonathan Blandford [Sat, 8 Dec 2001 04:53:10 +0000 (04:53 +0000)]
remove g_return_if_fail.

Fri Dec  7 23:42:50 2001  Jonathan Blandford  <jrb@webwynk.net>

* gtk/gtktreeview.c (validate_rows_handler): remove
g_return_if_fail.

* gtk/gtktreeview.c (validate_visible_area): Patch from Manish
Singh <yosh@gimp.org> to fix bug when rendering Tree with an
empty model.

24 years agoget logic right, #66249
Jonathan Blandford [Sat, 8 Dec 2001 01:10:52 +0000 (01:10 +0000)]
get logic right, #66249

Fri Dec  7 20:06:14 2001  Jonathan Blandford  <jrb@redhat.com>

* gtk/gtktreeview.c (validate_visible_area): get logic right,
#66249

* gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
removing a node ended up with a corrupt tree.  Really really nasty
bug.
(_gtk_rbtree_debug_spew): new debug helper function
(_fixup_validation): new inline function to clean up code
readability a lot.

24 years agoClose comment.
Owen Taylor [Sat, 8 Dec 2001 00:41:58 +0000 (00:41 +0000)]
Close comment.

Fri Dec  7 19:34:51 2001  Owen Taylor  <otaylor@redhat.com>
        * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
        Close comment.

24 years agoTypo fixes.
Matthias Clasen [Fri, 7 Dec 2001 23:39:54 +0000 (23:39 +0000)]
Typo fixes.

        * gtk/gtkstyle.h: Typo fixes.

        * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.

        * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.

        * gtk/tmpl/gtktypeutils.sgml, gtk/tmpl/gtkobject.sgml,
        gtk/tmpl/gtkstyle.sgml: Add docs.

24 years agoDisplay the XIM status callbacks with a popup window. (Patch from
Owen Taylor [Fri, 7 Dec 2001 23:15:32 +0000 (23:15 +0000)]
Display the XIM status callbacks with a popup window. (Patch from

Fri Dec  7 16:05:22 2001  Owen Taylor  <otaylor@redhat.com>

        * modules/input/gtkimcontextxim.c: Display the XIM
        status callbacks with a popup window. (Patch from
        HideToshi Tajima, #50628, somewhat modified.)

24 years agoeach source generation rule needs to use its own temporary file, to avoid
Tim Janik [Fri, 7 Dec 2001 11:08:17 +0000 (11:08 +0000)]
each source generation rule needs to use its own temporary file, to avoid

Fri Dec  7 12:07:15 2001  Tim Janik  <timj@gtk.org>

        * gtk/Makefile.am: each source generation rule needs to use its own
        temporary file, to avoid clashes for parallel builds. fixed rules
        for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.

24 years agofix up my list of "cursors that are actually useful" in gdk_cursor_new()
Havoc Pennington [Fri, 7 Dec 2001 05:27:17 +0000 (05:27 +0000)]
fix up my list of "cursors that are actually useful" in gdk_cursor_new()

2001-12-07  Havoc Pennington  <hp@pobox.com>

* gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
"cursors that are actually useful" in gdk_cursor_new() docs

24 years agoFix errors in computing the size of the second child.
Owen Taylor [Fri, 7 Dec 2001 04:16:16 +0000 (04:16 +0000)]
Fix errors in computing the size of the second child.

Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
        * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
        in computing the size of the second child.

24 years agoMake button 1 clicks on the trough do pages, button 3 steps. (Patch from
Owen Taylor [Thu, 6 Dec 2001 23:32:48 +0000 (23:32 +0000)]
Make button 1 clicks on the trough do pages, button 3 steps. (Patch from

Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkrange.c: Make button 1 clicks on the trough
do pages, button 3 steps. (Patch from Hans Breuer
#63735)

24 years agoForgotten file.
Matthias Clasen [Thu, 6 Dec 2001 21:48:22 +0000 (21:48 +0000)]
Forgotten file.

24 years agoFix docs. (#66383)
Matthias Clasen [Thu, 6 Dec 2001 21:38:12 +0000 (21:38 +0000)]
Fix docs. (#66383)

        * gtk/gtklabel.c: Fix docs. (#66383)

        * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs.
        (#66278, #66280)

        * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
        gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)

        * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
        Don't emit a g_warning() about being deprecated. (#66208)

        * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.

        * gtk/gtkcontainer.c: Doc fixes.

        * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.

        * gtk/gtkstyle.c (gtk_style_attach): Add docs.

        * gdk-pixbuf.h (gdk_pixbuf_ref, gdk_pixbuf_unref,
        gdk_pixbuf_animation_ref, gdk_pixbuf_animation_unref):
        Deprecate. (#66208)

        * gtk/tmpl/gtklabel.sgml: Remove redundant docs. (#66383)

        * gtk/tree_widget.sgml: Typo fix. (#66256)

        * gdk-pixbuf/Makefile.am (SCAN_OPTIONS): Add --deprecated-guards.

        * gtk/tmpl/gtktext.sgml, gtk/tmpl/gtktree.sgml,
        gtk/tmpl/gtktreeitem.sgml: Updates.

24 years agouhmm, I obviously forgot to commit my ChangeLog entry yesterday...
Sven Neumann [Wed, 5 Dec 2001 13:55:14 +0000 (13:55 +0000)]
uhmm, I obviously forgot to commit my ChangeLog entry yesterday...

24 years agoUpdated Norwegian (bokmål) translation.
Kjartan Maraas [Wed, 5 Dec 2001 09:23:00 +0000 (09:23 +0000)]
Updated Norwegian (bokmål) translation.

2001-12-05  Kjartan Maraas  <kmaraas@gnome.org>

* no.po: Updated Norwegian (bokmål) translation.

24 years agorestore the else case of #ifdef __GNUC__ #66225
Hidetoshi Tajima [Wed, 5 Dec 2001 05:49:41 +0000 (05:49 +0000)]
restore the else case of #ifdef __GNUC__ #66225

* gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
#66225

24 years agogtk/gtkmain.c g_module_symbol takes a gpointer *, not just a gpointer.
Manish Singh [Wed, 5 Dec 2001 02:49:32 +0000 (02:49 +0000)]
gtk/gtkmain.c g_module_symbol takes a gpointer *, not just a gpointer.

2001-12-04  Manish Singh  <yosh@gimp.org>

        * gtk/gtkmain.c
        * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
        a gpointer.

        * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
        correction to docs.

        * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast

24 years agoclose comment.
Sven Neumann [Wed, 5 Dec 2001 02:14:27 +0000 (02:14 +0000)]
close comment.

2001-12-05  Sven Neumann  <sven@gimp.org>

* gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.

* gtk/queryimmodules.c: g_dir_read_name() returns const.

24 years agoremove g_assert_not_reached() that was bogus, since we demand-create the
Havoc Pennington [Wed, 5 Dec 2001 01:43:48 +0000 (01:43 +0000)]
remove g_assert_not_reached() that was bogus, since we demand-create the

2001-12-04  Havoc Pennington  <hp@redhat.com>

* gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
g_assert_not_reached() that was bogus, since we demand-create the
tag info. reported by Chris Phelps

        Jump through assorted hoops to fix bug from Chris Phelps where
removing tags from the table resulted in btree trying to
access tag->table

* gtk/gtktextbuffer.c: set up mechanics of adding/removing
ourselves to the tag table

* gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer)
(_gtk_text_tag_table_remove_buffer): private cruft to
let us notify buffer of disappearing tags

* gtk/gtktexttag.h: remove BTreeNode typedef from this public
header, put it in tagprivate

* gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
tag_removed; it's emitted too late.
(_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
this

Padding for ABI-compat expansion

* gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
(struct _GtkTextAppearance): one pad in here too

* gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here

* gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
since action signals etc. seem pretty likely

* gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding

* gtk/gtktexttag.h (struct _GtkTextTagClass): padding

* gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding

24 years agoDeprecate. (#65851)
Matthias Clasen [Wed, 5 Dec 2001 00:06:40 +0000 (00:06 +0000)]
Deprecate. (#65851)

        * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)

        * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)

        * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.

        * gtk/tmpl/gtkwidget.sgml: Updates.
        * gtk/Makefile.am (IGNORE_HFILES): Remove gtktextchild.h.

24 years agoremove gtk_tree_view_column_cell_event, #62084.
Jonathan Blandford [Tue, 4 Dec 2001 23:52:14 +0000 (23:52 +0000)]
remove gtk_tree_view_column_cell_event, #62084.

Tue Dec  4 18:51:44 2001  Jonathan Blandford  <jrb@redhat.com>

* gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
#62084.

24 years agoMinor fix.
Jonathan Blandford [Tue, 4 Dec 2001 23:49:57 +0000 (23:49 +0000)]
Minor fix.

Tue Dec  4 18:38:35 2001  Jonathan Blandford  <jrb@redhat.com>

* demos/gtk-demo/main.c: (create_tree): Minor fix.

* docs/tree-column-sizing.txt: Update

* gtk/gtkrbtree.[ch]: Massive work to support validation.

* gtk/gtktreemodel.c: Doc fixes.

* gtk/gtktreeview.c: Incremental reflow added.
* gtk/gtktreeviewcolumn.c: ditto
* gtk/gtktreeviewcolumn.h: ditto

24 years agoMinor fix.
Jonathan Blandford [Tue, 4 Dec 2001 23:42:27 +0000 (23:42 +0000)]
Minor fix.

Tue Dec  4 18:38:35 2001  Jonathan Blandford  <jrb@redhat.com>

* demos/gtk-demo/main.c: (create_tree): Minor fix.

* docs/tree-column-sizing.txt: Update

* gtk/gtkrbtree.[ch]: Massive work to support validation.

* gtk/gtktreemodel.c: Doc fixes.

* gtk/gtktreeview.c: Incremental reflow added.
* gtk/gtktreeviewcolumn.c: ditto
* gtk/gtktreeviewcolumn.h: ditto

itty bitty ChangeLog entry.  Big 'ol changes.

24 years agoadd a warning for "invisible" property, #65999
Havoc Pennington [Tue, 4 Dec 2001 22:53:12 +0000 (22:53 +0000)]
add a warning for "invisible" property, #65999

2001-12-04  Havoc Pennington  <hp@redhat.com>

* gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
"invisible" property, #65999

24 years agofixed docs
Matt Wilson [Tue, 4 Dec 2001 20:12:42 +0000 (20:12 +0000)]
fixed docs

2001-12-04  Matt Wilson  <msw@redhat.com>

* gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs

24 years agoSimplify, make more efficient and fix memory leak when turning quark into
Owen Taylor [Tue, 4 Dec 2001 17:20:41 +0000 (17:20 +0000)]
Simplify, make more efficient and fix memory leak when turning quark into

Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
* gtk/gtksettings.c (gtk_settings_set_property_value):
Simplify, make more efficient and fix memory leak
when turning quark into a string. (#66103, HideToshi
Tajima)

24 years agoRef and sink priv->tooltips in init() and unref priv->tooltips in destroy
Owen Taylor [Tue, 4 Dec 2001 17:12:35 +0000 (17:12 +0000)]
Ref and sink priv->tooltips in init() and unref priv->tooltips in destroy

Tue Dec  4 12:06:13 2001  Owen Taylor  <otaylor@redhat.com>
* gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
init() and unref priv->tooltips in destroy rather
than calling gtk_object_destroy() which has no
effect on memory management. (#66104, HideToshi
Tajima)
* gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
so we free the when the object is freed. (Fixes memory
leak, #66096, HideToshi Tajima)
* gdk/gdkevents.c (gdk_synthesize_window_state): Use
a full GdkEvent structure to avoid reads of uninitialized/
invalid memory in gdk_event_put() (#65877, patch
from Hidetoshi Tajima)

24 years agoFill in color fields to black for transparent colors since we'll later
Owen Taylor [Tue, 4 Dec 2001 16:47:49 +0000 (16:47 +0000)]
Fill in color fields to black for transparent colors since we'll later

Tue Dec  4 11:45:45 2001  Owen Taylor  <otaylor@redhat.com>
* io-xpm.c (pixbuf_create_from_xpm): Fill in color
fields to black for transparent colors since we'll
later initialize pixels from them. (Fixes purify
errors, #66093, HideToshi Tajima)

24 years agoRevert my last mistaken change - toggle-size-request doesn't take a
Owen Taylor [Tue, 4 Dec 2001 16:08:18 +0000 (16:08 +0000)]
Revert my last mistaken change - toggle-size-request doesn't take a

Tue Dec  4 11:06:54 2001  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkmenuitem.c: Revert my last mistaken change -
        toggle-size-request doesn't take a requisition.

        * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
        reference to marshaler that no longer exists.

24 years agoUpdated Slovak translation.
Stanislav Visnovsky [Tue, 4 Dec 2001 09:24:15 +0000 (09:24 +0000)]
Updated Slovak translation.

2001-12-04  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>

        * sk.po: Updated Slovak translation.

24 years agoPatch from Bill Haneman (with many modifications) to make the focus color
Owen Taylor [Tue, 4 Dec 2001 03:27:30 +0000 (03:27 +0000)]
Patch from Bill Haneman (with many modifications) to make the focus color

Mon Dec  3 16:39:17 2001  Owen Taylor  <otaylor@redhat.com>

Patch from Bill Haneman (with many modifications) to make
the focus color work on dark themes and to make the
focus line width configurable. (#61079, #63074)

        * gtk/gtkwidget.c: Add style properties,
::focus-widget, ::focus-line-width, and ::focus-padding.

* gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a
state argument as well so we can use fg[STATE] to
draw instead of always drawing with black.
Cange paint_focus() to respect GtkWidget::focus-width
and GtkWidget::focus-line-pattern. Fix continuity
problem where the default 1-1 stipple had a blob
in one corner and a gap in the other. Change the
interpretation of x/y/width/height to be the bounding
box of the focus rect instead of the rectangle
passed to gdk_draw_rectangle.

* gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c
gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c
gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width
and ::focus-line-padding.

* gtk/gtkentry.c: Handle :;focus-width property; cleanup
and remove duplicated code; fix drawing of focus rectangle
when interior-focus = FALSE. (#63072, #63073)

* gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
Range and TreeViewColumn will need more extensive fixing.

* gtk/gtkcolorsel.c: Honor focus line attributes when
drawing the focus on the color swatches. (#63071)

* gtk/gtkhsv.c: Honor focus line attributes when
drawing the focus for the ring and triangle.

* docs/widget_geometry.txt: Start at documenting how
various widgets are drawn.

* gtk/gtkbutton.c (_gtk_button_paint): Export
_gtk_button_paint() librarywide, so we don't have
duplicate a bunch of code in gtktogglebutton.c.

* gtk/gtktogglebutton.c: Use _gtk_button_paint().

24 years agoremove VOID:BOXED,POINTER and NONE:POINTER. and now everyone else has to
Jonathan Blandford [Tue, 4 Dec 2001 02:06:21 +0000 (02:06 +0000)]
remove VOID:BOXED,POINTER and NONE:POINTER. and now everyone else has to

Mon Dec  3 21:04:13 2001  Jonathan Blandford  <jrb@redhat.com>

* gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
NONE:POINTER.
and now everyone else has to recompile their GTK too.... (-:

24 years agoUpdated Swedish translation.
Christian Rose [Tue, 4 Dec 2001 00:36:50 +0000 (00:36 +0000)]
Updated Swedish translation.

2001-12-04  Christian Rose  <menthos@menthos.com>

* sv.po: Updated Swedish translation.

24 years agoReturn FALSE from expose handlers.
Alex Larsson [Mon, 3 Dec 2001 22:11:40 +0000 (22:11 +0000)]
Return FALSE from expose handlers.

2001-12-03  Alex Larsson  <alexl@redhat.com>

* gtk/gtkaccellabel.c:
* gtk/gtkarrow.c:
* gtk/gtkcolorsel.c:
* gtk/gtkcontainer.c:
* gtk/gtklabel.c:
* gtk/gtktextview.c:
* gtk/gtktogglebutton.c:
* gtk/gtktreeview.c:
* gtk/gtkwindow.c:
Return FALSE from expose handlers.

24 years agoUpdates.
Matthias Clasen [Mon, 3 Dec 2001 21:28:47 +0000 (21:28 +0000)]
Updates.

        * gdk/tmpl/input_devices.sgml,
        gdk/gdk-sections.txt, gdk/tmpl/windows.sgml: Updates.

24 years agoif we use pointers, we should free the previous pointer first (if it
Kristian Rietveld [Mon, 3 Dec 2001 21:20:12 +0000 (21:20 +0000)]
if we use pointers, we should free the previous pointer first (if it

Mon Dec  3 21:15:59 2001  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
        we use pointers, we should free the previous pointer first (if
        it exists), before we set a new pointer. (#64726)

        * gtk/gtktreeprivate.h: get rid of cursor_drag

        * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check
        for cursor_drag
        (gtk_tree_view_bin_expose): don't directly return in the while
        loop
        (gtk_tree_view_class_init): indentend expanders by default
        (gtk_tree_view_header_focus): only give the button focus
        if it's clickable, visible and the column is reorderable
        (#65539)

        * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
        create and free cursor

24 years agoUpdated Ukrainian Translation
Yuri Syrota [Mon, 3 Dec 2001 15:47:47 +0000 (15:47 +0000)]
Updated Ukrainian Translation

24 years agoFix some bugs with size requisition. (From Bill Haneman) Draw headers and
Owen Taylor [Mon, 3 Dec 2001 15:24:25 +0000 (15:24 +0000)]
Fix some bugs with size requisition. (From Bill Haneman) Draw headers and

Mon Dec  3 10:23:07 2001  Owen Taylor  <otaylor@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
some bugs with size requisition. (From Bill Haneman)
* gtk/gtkcalendar.c: Draw headers and selection in
base/text[SELECTED] instead of fg/bg[SELECTED].
* gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
code and formatting.

24 years agoUpdated Ukrainian Translation
Yuri Syrota [Mon, 3 Dec 2001 10:17:15 +0000 (10:17 +0000)]
Updated Ukrainian Translation

24 years agoHmm, setter functions normally assign the new value to the object field.
Havoc Pennington [Mon, 3 Dec 2001 05:21:53 +0000 (05:21 +0000)]
Hmm, setter functions normally assign the new value to the object field.

2001-12-03  Havoc Pennington  <hp@pobox.com>

* gtk/gtktextview.c (set_window_height):
(set_window_width): Hmm, setter functions normally assign the new
value to the object field. Reported by Chris Phelps.

24 years agofile virtual_screen.sgml was initially added on branch gtk-multihead.
Erwann Chenede [Mon, 3 Dec 2001 00:06:43 +0000 (00:06 +0000)]
file virtual_screen.sgml was initially added on branch gtk-multihead.

24 years agoUpdates.
Matthias Clasen [Sun, 2 Dec 2001 22:27:26 +0000 (22:27 +0000)]
Updates.

        * gdk/tmpl/dnd.sgml: Updates.

24 years agoAdd gdk_pixbuf_get_option.
Tor Lillqvist [Sun, 2 Dec 2001 18:03:52 +0000 (18:03 +0000)]
Add gdk_pixbuf_get_option.

2001-11-30  Tor Lillqvist  <tml@iki.fi>

* gdk_pixbuf.def: Add gdk_pixbuf_get_option.

24 years agoUpdated Norwegian (bokmål) translation.
Kjartan Maraas [Sun, 2 Dec 2001 16:36:44 +0000 (16:36 +0000)]
Updated Norwegian (bokmål) translation.

2001-12-01  Kjartan Maraas  <kmaraas@gnome.org>

* no.po: Updated Norwegian (bokmål) translation.

24 years agoadd brief explanation of how to use GtkOptionMenu
Havoc Pennington [Sat, 1 Dec 2001 18:30:49 +0000 (18:30 +0000)]
add brief explanation of how to use GtkOptionMenu

2001-12-01  Havoc Pennington  <hp@pobox.com>

* gtk/tmpl/gtkoptionmenu.sgml: add brief explanation of how to use
GtkOptionMenu

24 years agofile multihead.sgml was initially added on branch gtk-multihead.
Erwann Chenede [Sat, 1 Dec 2001 16:24:52 +0000 (16:24 +0000)]
file multihead.sgml was initially added on branch gtk-multihead.

24 years agoset the signal id to 0 after we disconnect from it
jacob berkman [Fri, 30 Nov 2001 23:17:29 +0000 (23:17 +0000)]
set the signal id to 0 after we disconnect from it

2001-11-30  jacob berkman  <jacob@ximian.com>

* gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
signal id to 0 after we disconnect from it

24 years agoDeprecate.
Matthias Clasen [Fri, 30 Nov 2001 22:55:28 +0000 (22:55 +0000)]
Deprecate.

        * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
        gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
        gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
        gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref):  Deprecate.

        * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
        GTK_DISABLE_DEPRECATED.

        * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
        gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.

        * gdk/tmpl/colors.sgml, gdk/tmpl/pixmaps.sgml, gdk/tmpl/dnd.sgml,
        gdk/tmpl/gcs.sgml: Document ref and unref functions as deprecated.

24 years agoSanitize move/resize code, removing various bad, non-functional hacks.
Owen Taylor [Fri, 30 Nov 2001 21:51:46 +0000 (21:51 +0000)]
Sanitize move/resize code, removing various bad, non-functional hacks.

Fri Nov 30 16:37:01 2001  Owen Taylor  <otaylor@redhat.com>
* gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
move/resize code, removing various bad, non-functional
hacks. (Fixes #65048, reported by Damon Chaplin.)

24 years agoPatch from Hidetoshi Tajima to fix bad match error when target drawable is
Owen Taylor [Fri, 30 Nov 2001 21:14:07 +0000 (21:14 +0000)]
Patch from Hidetoshi Tajima to fix bad match error when target drawable is

Fri Nov 30 16:12:21 2001  Owen Taylor  <otaylor@redhat.com>
* gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix
bad match error when target drawable is not the
same depth as the root window. (#65841)
* HACKING: Update.

24 years agoFix alignment problem in deserialization, (#65785, reported by Hidetoshi
Owen Taylor [Fri, 30 Nov 2001 21:01:01 +0000 (21:01 +0000)]
Fix alignment problem in deserialization, (#65785, reported by Hidetoshi

Fri Nov 30 15:55:34 2001  Owen Taylor  <otaylor@redhat.com>
* gdk-pixdata.c (gdk_pixdata_deserialize): Fix
alignment problem in deserialization, (#65785,
reported by Hidetoshi Tajima)

24 years agoTypo fix.
Matthias Clasen [Thu, 29 Nov 2001 23:08:38 +0000 (23:08 +0000)]
Typo fix.

        * gdk/gdkwindow.c: Typo fix.

        * gtk/gtk-sections.sgml: Add GtkTextChildAnchor.

        * gdk/tmpl/dnd.sgml: Updates.

        * gdk/tmpl/pango_interaction.sgml: Document GdkPangoAttrEmbossed
        and GdkPangoAttrStipple.

24 years agoadd checks for empty menu items to behave like insensitive items (#59456)
Kristian Rietveld [Thu, 29 Nov 2001 20:36:12 +0000 (20:36 +0000)]
add checks for empty menu items to behave like insensitive items (#59456)

Thu Nov 29 21:35:56 2001  Kristian Rietveld  <kristian@planet.nl>

        * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
        empty menu items to behave like insensitive items (#59456)

        * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
        next item if the first item in the menu is a tear off item
        (#59456-2, suggestion by Matthias Clasen)

        * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
        (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
        (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
        (gtk_real_menu_shell_activate_current): add check, so empty
        menu items behave like insensitive items (#59456)

        * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
        the checks more readable ...

        * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
        (gtk_menu_shell_button_release): causes the menu to dropdown if the
        caption is clicked again (#64977)

24 years agoassertion here that we were at the end iterator was not correct; change
Havoc Pennington [Thu, 29 Nov 2001 20:09:41 +0000 (20:09 +0000)]
assertion here that we were at the end iterator was not correct; change

2001-11-29  Havoc Pennington  <hp@redhat.com>

* gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
assertion here that we were at the end iterator was not correct;
change code to move us to the end iterator. bug #65731

24 years agoFill in missing error parameters to DecodeHeader and DecodeColormap.
Manish Singh [Thu, 29 Nov 2001 01:39:34 +0000 (01:39 +0000)]
Fill in missing error parameters to DecodeHeader and DecodeColormap.

2001-11-28  Manish Singh  <yosh@gimp.org>

        * gdk-pixbuf/io-bmp.c (gdk_pixbuf__bmp_image_load_increment): Fill
        in missing error parameters to DecodeHeader and DecodeColormap.

24 years agoRemove improper use of g_locale_to_utf8() to convert from latin-1, and do
Owen Taylor [Thu, 29 Nov 2001 01:15:52 +0000 (01:15 +0000)]
Remove improper use of g_locale_to_utf8() to convert from latin-1, and do

Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
* gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove
improper use of g_locale_to_utf8() to convert from
latin-1, and do it the easy way by building the string
correctly in the first place.

24 years agoConvert atoms to and from atoms for properties of type XA_ATOM. (#65555,
Owen Taylor [Thu, 29 Nov 2001 00:43:24 +0000 (00:43 +0000)]
Convert atoms to and from atoms for properties of type XA_ATOM. (#65555,

Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
* gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get):
Convert atoms to and from atoms for properties of type XA_ATOM.
(#65555, patch from Hidetoshi Tajima)

24 years agoFix Ximian bug #12125; merged from gdk-pixbuf stable.
Federico Mena Quintero [Thu, 29 Nov 2001 00:13:02 +0000 (00:13 +0000)]
Fix Ximian bug #12125; merged from gdk-pixbuf stable.

2001-11-21  Federico Mena Quintero  <federico@ximian.com>

Fix Ximian bug #12125; merged from gdk-pixbuf stable.

* gdk-pixbuf/io-bmp.c (gdk_pixbuf__bmp_image_load_increment): Use
a simple state machine instead of a scary if/else chain.
(DecodeHeader): Set the reading state.
(DecodeColormap): Set the reading state.
(decode_bitmasks): New function, decodes the bitmasks for
BI_BITFIELDS coding.
(OneLine32): Handle BI_BITFIELDS coding.
(OneLine16): Likewise.